package com.mindao.app.basic.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mindao.app.basic.model.Order;
import com.mindao.app.basic.service.OrderService;
import com.mindao.app.common.spring.controller.BaseController;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：
/*
/* 创 建 人：李国才
/* 创建时间：2016年7月20日 上午11:53:11 	
 **/
@Controller
@RequestMapping("/basic/order")
public class OrderController extends BaseController{
	@Autowired
	private OrderService orderService;
	
	@RequestMapping
	public String list(HttpServletRequest request, HttpServletResponse response, HttpSession session, Model rhs){
		List<Order> orderList= orderService.list();
		rhs.addAttribute("orderList", orderList);
		return super.rtnDefault(request, response, session, rhs);
	}
}
